package ${package}.entity;
import com.bolt.support.spring.jpa.entity.BaseEntity;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;

/**
* Auto Generate Javadoc
* @author
* 日期:${.now?string("yyyy-MM-dd HH:mm:ss")}
* ${table.remarks?default("")}
**/
@Access(AccessType.FIELD)
@Entity
@Table(name = "${table.sqlName}")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ${table.className}Entity extends  BaseEntity<${table.pkColumn.javaType}> {
        private static final long serialVersionUID = 1L;
        <#list table.columns as column>
        <#if  column.remarks?? >
        /**
        * ${column.remarks}
        */
        </#if>
        <#if column.primaryKey>
         @Id
         private ${column.javaType}  id;
         <#nt> 
        <#else>
        <#if column.sqlName != "VERSION_NO">
         @Column(name="${column.sqlName}" , length = ${column.size})
         private ${column.javaType}  ${column.javaProperty};
        </#if>
         <#nt> 
        </#if>
        </#list>

}